home *** CD-ROM | disk | FTP | other *** search
- Path: sunrise.gv.ssi1.com!news
- From: Mike Palmer <Mike.Palmer@tus.ssi1.com>
- Newsgroups: comp.lang.c++
- Subject: Re: mouse?
- Date: 2 Mar 1996 05:13:26 GMT
- Organization: Silicon Systems, Inc.
- Message-ID: <4h8ldm$4o8@atlas.tus.ssi1.com>
- References: <4h5gpk$h9v@cobain.rowan.edu>
- NNTP-Posting-Host: pc259u.tus.ssi1.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- josh@elvis.rowan.edu (Josh Bengal) wrote:
- >
- >anyone know how to get a turbo c++ dos program to be mouse compatible?
- >
- >-josh
- >
-
- Ouch. I think Borland's short lived TurboVision product supported the
- mouse directly, but other than that you are going to have to write your
- own code to do it. The mouse interrupt is int33, as I recall, and there
- are probably still books available on how to do this.
-
- Way back when, I did this for DOS programs in both text and graphics
- mode, and it was generally nothing short of painful. Everything had
- to be done manually. The only good thing, as I recall, is that you
- didn't have to write a continuous polling loop - the mouse driver will
- keep track of which buttons were pushed since the last call to the
- driver.
-
- But it almost sounded from your post like you wanted to take an
- existing DOS application and add mouse compatibility to it. If that's
- the case, you're probably in for some serious work. Essentially, you
- have to do all the work to check on the mouse at every point where it
- could be used for input, and you have to take the appropriate action
- yourself. Compared to Windows, it's painful - but Windows makes up
- for that in other ways (programming Windows isn't easy either).
-
- -- Mike --
-
-
-